const mongoose = require('mongoose')
mongoose.connect('mongodb://root:root@39.100.71.171:27017/SecondTransaction?authSource=admin')
const conn = mongoose.connection

conn.on('open', () => {
    console.log('连接数据库成功')
})

conn.on('err', (err) => {
    console.log(err)
})

module.exports = mongoose